package com.itheima.test_extends.demo4;

public class Son extends Father{
    //int a = 100;
    public void drink(){
        super.drink();
        System.out.println("喝可乐");
    }
    @Override
    public void sleep(){
        System.out.println("趴着睡");
    }
    public void count(){
        int a = 10;
        System.out.println(a);
        System.out.println(this.a);
        System.out.println(super.a);
    }
}
